package com.peter.demo.annotations.injections.qualifier;

import com.peter.project.service.MyService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Auther: 肖冬
 * @Date: 2020/8/4 22:23
 * @Description:
 */
public class MyTest {

    @Test
    public void test(){
        ApplicationContext app = new AnnotationConfigApplicationContext(MyConfig.class);

        MyService service = app.getBean(MyService.class);
        service.print();
    }
}
